package com.cxhd.lis.model;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.cxhd.lis.model.newmodel.LisCharginitem;
import com.cxhd.lis.model.newmodel.LisCharginitemTest;
import com.cxhd.lis.model.newmodel.LisDeviceset;
import com.cxhd.lis.model.newmodel.LisMatchinfo;
import com.cxhd.lis.model.newmodel.LisPatient;
import com.cxhd.lis.model.newmodel.LisPatientInfo;
import com.cxhd.lis.model.newmodel.LisProfiletest;
import com.cxhd.lis.model.newmodel.LisReferencevalue;
import com.cxhd.lis.model.newmodel.LisSamplecollection;
import com.cxhd.lis.model.newmodel.LisSampletype;
import com.cxhd.lis.model.newmodel.LisSqd;
import com.cxhd.lis.model.newmodel.LisTestdescribe;
import com.cxhd.lis.model.newmodel.LisUser;
import com.cxhd.lis.model.newmodel.PpDeviceTest;
import com.cxhd.lis.model.newmodel.lisKsdm;
import com.cxhd.lis.model.newmodel.lisTestResult;
import com.cxhd.lis.model.newmodel.LisPatientType;
import com.cxhd.lis.model.newmodel.LisReference;
import com.cxhd.lis.model.newmodel.LisResult;

import com.cxhd.lis.model.newmodel.ZkControlmaterials;
import com.cxhd.lis.model.newmodel.ZkMajor;
import com.cxhd.lis.model.newmodel.ZkMajorTest;
import com.cxhd.lis.model.newmodel.ZkReagentumber;
import com.cxhd.lis.model.newmodel.LisUnit;
import com.cxhd.lis.model.newmodel.PpDeviceTestVal;

/**
 * Generated by JFinal, do not modify this file.
 * <pre>
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     _MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * </pre>
 */
public class _MappingKit {

    public static void mapping(ActiveRecordPlugin arp) {
        arp.addMapping("lis_charginitem", "PK", LisCharginitem.class);
        // Composite Primary Key order: ITEMID,PK,TESTID
        arp.addMapping("lis_charginitem_test", "ITEMID,PK,TESTID", LisCharginitemTest.class);
        arp.addMapping("lis_deviceset", "PK", LisDeviceset.class);
        arp.addMapping("lis_ksdm", "PK", lisKsdm.class);
        arp.addMapping("lis_patient_type", "PK", LisPatientType.class);
        arp.addMapping("lis_profiletest", "PK", LisProfiletest.class);
        arp.addMapping("lis_sampletype", "PK", LisSampletype.class);
        arp.addMapping("lis_system_log", "pk", LisSystemLog.class);
        arp.addMapping("lis_system_res", "pk", LisSystemRes.class);
        arp.addMapping("lis_system_role_res", "pk", LisSystemRoleRes.class);

        arp.addMapping("lis_samplecollection", "PK", LisSamplecollection.class);
        arp.addMapping("lis_testdescribe", "PK", LisTestdescribe.class);
        arp.addMapping("lis_testresult", "PK", LisTestresult.class);
      

        arp.addMapping("lis_patient", "PK", LisPatient.class);
        arp.addMapping("lis_user", "pk", LisUser.class);
        arp.addMapping("lis_testresult", "PK", lisTestResult.class);
        arp.addMapping("lis_patient", "PK", LisPatient.class);
        arp.addMapping("lis_samplecollection", "PK", LisSamplecollection.class);
        // Composite Primary Key order: DEVICEID,PK,TESTID
        arp.addMapping("pp_device_test", "DEVICEID,PK,TESTID", PpDeviceTest.class);
         arp.addMapping("pp_device_test_val", "PK", PpDeviceTestVal.class);
        arp.addMapping("lis_testdescribe", "PK", LisTestdescribe.class);
        arp.addMapping("lis_referencevalue", "PK", LisReferencevalue.class);
         arp.addMapping("lis_reference", "PK", LisReference.class);
          arp.addMapping("lis_result", "pk", LisResult.class);

        arp.addMapping("zk_controlmaterials", "PK", ZkControlmaterials.class);
        arp.addMapping("zk_major", "PK", ZkMajor.class);
        arp.addMapping("zk_major_test", "PK", ZkMajorTest.class);
        arp.addMapping("zk_reagentumber", "PK", ZkReagentumber.class);
          arp.addMapping("lis_unit", "PK", LisUnit.class);
    }
}
